
public abstract class Animal {

	String name;
	int age;
	
	// Constructor
	public Animal()
	{
		name = "";
		age = 0;
	}
	
	public Animal(String name, int age)
	{
		this.name = name;
		this.age = age;
	}

	// Getters and Setters
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	// Method
	public abstract void eat();
	public abstract void sleep();
}
